Animating SwiftUI Applications by Stephen DeStefano
Author:Stephen DeStefano
Language: eng
Format: epub
Publisher: Packt
Published: 2023-05-15T00:00:00+00:00
Creating a stroke animation on the heart image
Okay, we have animated our first image, so we are going to follow the same process again for two more images. The next image will be a heart â for this one, we will animate a stroke around it as we did with the letters, but also we will add the heart image back into the scene.
If you are following along with the bookâs project, you can find the heart image in the GitHub repository, where the background has already been removed. However, if you are using your own images, you will need to do this yourself.
After you have prepared your image, now open it with Inkscape so that you can vectorize it. With the image selected in the editor, go to the Path menu at the top and choose Trace Bitmap; this will trace the image and prepare it for vectorization, as before.
With the image selected on the canvas, if you look at the Previews pane at the right, the image has been converted into black and white. Thatâs because, by default, Inkscape selects the Single Scan option, the option for black-and-white images. And even though this is a color image, because itâs such a simple shape with not many variations of red in it, we donât need the Multicolor option; so, Single scan will work fine here.
This is also a good opportunity to use the Smooth Corners option as well because this shape has (for the most part) smooth corners, and this selection will preserve them.
This is what it should look like so far:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12519)
Hello! Python by Anthony Briggs(9866)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9756)
The Mikado Method by Ola Ellnestam Daniel Brolund(9746)
Dependency Injection in .NET by Mark Seemann(9292)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8257)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7740)
Grails in Action by Glen Smith Peter Ledbrook(7666)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7515)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(6739)
Microservices with Go by Alexander Shuiskov(6503)
Practical Design Patterns for Java Developers by Miroslav Wengner(6404)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6382)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6376)
Angular Projects - Third Edition by Aristeidis Bampakos(5759)
The Art of Crafting User Stories by The Art of Crafting User Stories(5292)
NetSuite for Consultants - Second Edition by Peter Ries(5236)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5052)
Kotlin in Action by Dmitry Jemerov(5017)
